Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QFontMetrics support #898

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add QFontMetrics support #898

wants to merge 10 commits into from

Conversation

Montel
Copy link
Contributor

@Montel Montel commented Mar 15, 2024

No description provided.

@Montel Montel self-assigned this Mar 15, 2024
}

#[repr(C)]
pub struct QFontMetrics {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a test in the standalones would be good too :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add it.

@Montel Montel force-pushed the add_qfontmetrics branch from c42f8fa to 0fa3bbf Compare March 15, 2024 14:31
@Montel
Copy link
Contributor Author

Montel commented Apr 8, 2024

no idea why it crashs...

const int pointSize = 40;
f.setPointSize(pointSize);
const auto m = constructor_qfontmetrics(f);
QCOMPARE(m.ascent(), 57);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value depend against font size etc...
=> we can't test it...

No idea what testing from constructor...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants